public class SingleTon {

    public static void main(String[] args) {
        System.out.println(SingleTon.getInstance());
        System.out.println(SingleTon.count);
        System.out.println(SingleTon.count2);
    }


    public static int count;

    public static int count2=0;

    public static SingleTon instance = new SingleTon();


    public SingleTon() {
        count ++;
        count2 ++;
    }

    public static SingleTon getInstance() {
        return instance;
    }
}
